package com.lovo.J177.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.J177.dao.UserDAO;
import com.lovo.J177.model.dos.UserDO;
import com.lovo.J177.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service//映射
@Transactional//事务
public class UserServiceImpl extends ServiceImpl<UserDAO, UserDO> implements UserService {
    @Resource
    private UserDAO userDAO;

    @Override
    public UserDO findByNameAndPwd(String name,String pwd) {
        return userDAO.selectByNameAndPwd(name,pwd);
    }
}
